<!DOCTYPE html>
<html lang="en">
  <head>
    <title>NextLevelSession Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/NextLevelSession" class="dashAnchor"></a>
    <a title="NextLevelSession Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">NextLevel Docs</a> (62% documented)</p>
        <p class="header-right"><a href="https://github.com/NextLevel/NextLevel"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">NextLevel Reference</a>
        <img id="carat" src="../img/carat.png" />
        NextLevelSession Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/NextLevel.html">NextLevel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelARConfiguration.html">NextLevelARConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelAudioConfiguration.html">NextLevelAudioConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelBufferRenderer.html">NextLevelBufferRenderer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelClip.html">NextLevelClip</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelConfiguration.html">NextLevelConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelConfiguration/AspectRatio.html">– AspectRatio</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelGIFCreator.html">NextLevelGIFCreator</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelPhotoConfiguration.html">NextLevelPhotoConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelSession.html">NextLevelSession</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NextLevelVideoConfiguration.html">NextLevelVideoConfiguration</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB15ClipFilenameKeySSvp">NextLevelClipFilenameKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB15ClipInfoDictKeySSvp">NextLevelClipInfoDictKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB11ErrorDomainSSvp">NextLevelErrorDomain</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB19PhotoCroppedJPEGKeySSvp">NextLevelPhotoCroppedJPEGKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB12PhotoJPEGKeySSvp">NextLevelPhotoJPEGKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB16PhotoMetadataKeySSvp">NextLevelPhotoMetadataKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB16PhotoRawImageKeySSvp">NextLevelPhotoRawImageKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:9NextLevel0aB17PhotoThumbnailKeySSvp">NextLevelPhotoThumbnailKey</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/NextLevelAuthorizationStatus.html">NextLevelAuthorizationStatus</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/NextLevelCaptureMode.html">NextLevelCaptureMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/NextLevelDeviceType.html">NextLevelDeviceType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/NextLevelError.html">NextLevelError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/NextLevelMirroringMode.html">NextLevelMirroringMode</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureConnection.html">AVCaptureConnection</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureDevice.html">AVCaptureDevice</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureDevice/Format.html">– Format</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureDevice/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureDevice/WhiteBalanceGains.html">– WhiteBalanceGains</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureDeviceInput.html">AVCaptureDeviceInput</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/AVCaptureVideoOrientation.html">AVCaptureVideoOrientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/CIContext.html">CIContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/CMSampleBuffer.html">CMSampleBuffer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Comparable.html">Comparable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Data.html">Data</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Date.html">Date</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/FileManager.html">FileManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIImage.html">UIImage</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelDelegate.html">NextLevelDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols.html#/NextLevelDepthDataDelegate">NextLevelDepthDataDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelDeviceDelegate.html">NextLevelDeviceDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelFlashAndTorchDelegate.html">NextLevelFlashAndTorchDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelMetadataOutputObjectsDelegate.html">NextLevelMetadataOutputObjectsDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelPhotoDelegate.html">NextLevelPhotoDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelPortraitEffectsMatteDelegate.html">NextLevelPortraitEffectsMatteDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelPreviewDelegate.html">NextLevelPreviewDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/NextLevelVideoDelegate.html">NextLevelVideoDelegate</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB17DeviceOrientationa">NextLevelDeviceOrientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB14DevicePositiona">NextLevelDevicePosition</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB12ExposureModea">NextLevelExposureMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB9FlashModea">NextLevelFlashMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB9FocusModea">NextLevelFocusMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB9TorchModea">NextLevelTorchMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB22VideoStabilizationModea">NextLevelVideoStabilizationMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:9NextLevel0aB16WhiteBalanceModea">NextLevelWhiteBalanceMode</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>NextLevelSession</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">NextLevelSession</span></code></pre>

                </div>
              </div>
            <p>NextLevelSession, a powerful object for managing and editing a set of recorded media clips.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC15outputDirectorySSvp"></a>
                    <a name="//apple_ref/swift/Property/outputDirectory" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC15outputDirectorySSvp">outputDirectory</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Output directory for a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">outputDirectory</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC8fileTypeSo06AVFileE0avp"></a>
                    <a name="//apple_ref/swift/Property/fileType" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC8fileTypeSo06AVFileE0avp">fileType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Output file type for a session, see AVMediaFormat.h for supported types.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">fileType</span><span class="p">:</span> <span class="kt">AVFileType</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC13fileExtensionSSvp"></a>
                    <a name="//apple_ref/swift/Property/fileExtension" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC13fileExtensionSSvp">fileExtension</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Output file extension for a session, see AVMediaFormat.h for supported extensions.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">fileExtension</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC10identifier10Foundation4UUIDVvp"></a>
                    <a name="//apple_ref/swift/Property/identifier" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC10identifier10Foundation4UUIDVvp">identifier</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Unique identifier for a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">UUID</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC4date10Foundation4DateVvp"></a>
                    <a name="//apple_ref/swift/Property/date" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC4date10Foundation4DateVvp">date</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creation date for a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">date</span><span class="p">:</span> <span class="kt">Date</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC3url10Foundation3URLVSgvp"></a>
                    <a name="//apple_ref/swift/Property/url" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC3url10Foundation3URLVSgvp">url</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates a URL for session output, otherwise nil</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC12isVideoSetupSbvp"></a>
                    <a name="//apple_ref/swift/Property/isVideoSetup" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC12isVideoSetupSbvp">isVideoSetup</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isVideoSetup</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC12isVideoReadySbvp"></a>
                    <a name="//apple_ref/swift/Property/isVideoReady" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC12isVideoReadySbvp">isVideoReady</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Checks if the session is setup for recording video</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isVideoReady</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC12isAudioSetupSbvp"></a>
                    <a name="//apple_ref/swift/Property/isAudioSetup" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC12isAudioSetupSbvp">isAudioSetup</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isAudioSetup</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC12isAudioReadySbvp"></a>
                    <a name="//apple_ref/swift/Property/isAudioReady" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC12isAudioReadySbvp">isAudioReady</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Checks if the session is setup for recording audio</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isAudioReady</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC5clipsSayAA0aB4ClipCGvp"></a>
                    <a name="//apple_ref/swift/Property/clips" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC5clipsSayAA0aB4ClipCGvp">clips</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Recorded clips for the session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">clips</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Classes/NextLevelClip.html">NextLevelClip</a></span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC13totalDurationSo6CMTimeavp"></a>
                    <a name="//apple_ref/swift/Property/totalDuration" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC13totalDurationSo6CMTimeavp">totalDuration</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Duration of a session, the sum of all recorded clips.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">totalDuration</span><span class="p">:</span> <span class="kt">CMTime</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC7isReadySbvp"></a>
                    <a name="//apple_ref/swift/Property/isReady" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC7isReadySbvp">isReady</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Checks if the session&rsquo;s asset writer is ready for data.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isReady</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC21currentClipHasStartedSbvp"></a>
                    <a name="//apple_ref/swift/Property/currentClipHasStarted" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC21currentClipHasStartedSbvp">currentClipHasStarted</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>True if the current clip recording has been started.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">currentClipHasStarted</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC19currentClipDurationSo6CMTimeavp"></a>
                    <a name="//apple_ref/swift/Property/currentClipDuration" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC19currentClipDurationSo6CMTimeavp">currentClipDuration</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Duration of the current clip.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">currentClipDuration</span><span class="p">:</span> <span class="kt">CMTime</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC19currentClipHasVideoSbvp"></a>
                    <a name="//apple_ref/swift/Property/currentClipHasVideo" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC19currentClipHasVideoSbvp">currentClipHasVideo</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Checks if the current clip has video.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">currentClipHasVideo</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC19currentClipHasAudioSbvp"></a>
                    <a name="//apple_ref/swift/Property/currentClipHasAudio" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC19currentClipHasAudioSbvp">currentClipHasAudio</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Checks if the current clip has audio.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">currentClipHasAudio</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC5assetSo7AVAssetCSgvp"></a>
                    <a name="//apple_ref/swift/Property/asset" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC5assetSo7AVAssetCSgvp">asset</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p><code>AVAsset</code> of the session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">asset</span><span class="p">:</span> <span class="kt">AVAsset</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC15pixelBufferPoolSo07CVPixeleF3RefaSgvp"></a>
                    <a name="//apple_ref/swift/Property/pixelBufferPool" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC15pixelBufferPoolSo07CVPixeleF3RefaSgvp">pixelBufferPool</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Shared pool where by which all media is allocated.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">pixelBufferPool</span><span class="p">:</span> <span class="kt">CVPixelBufferPool</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/object%20lifecycle"></a>
                <a name="//apple_ref/swift/Section/object lifecycle" class="dashAnchor"></a>
                <a href="#/object%20lifecycle">
                  <h3 class="section-name">object lifecycle</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC5queue0D3KeyACSo012OS_dispatch_D0C_8Dispatch0h8SpecificE0CyytGtcfc"></a>
                    <a name="//apple_ref/swift/Method/init(queue:queueKey:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC5queue0D3KeyACSo012OS_dispatch_D0C_8Dispatch0h8SpecificE0CyytGtcfc">init(queue:queueKey:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initialize using a specific dispatch queue.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">convenience</span> <span class="nf">init</span><span class="p">(</span><span class="nv">queue</span><span class="p">:</span> <span class="kt">DispatchQueue</span><span class="p">,</span> <span class="nv">queueKey</span><span class="p">:</span> <span class="kt">DispatchSpecificKey</span><span class="o">&lt;</span><span class="p">()</span><span class="o">&gt;</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>queue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Queue for a session operations</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>queueKey</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Key for re-calling the session queue from the system</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionCACycfc"></a>
                    <a name="//apple_ref/swift/Method/init()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionCACycfc">init()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/setup"></a>
                <a name="//apple_ref/swift/Section/setup" class="dashAnchor"></a>
                <a href="#/setup">
                  <h3 class="section-name">setup</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC10setupVideo12withSettings13configuration17formatDescriptionSbSDySSypGSg_AA0abE13ConfigurationCSo08CMFormatJ3RefaSgtF"></a>
                    <a name="//apple_ref/swift/Method/setupVideo(withSettings:configuration:formatDescription:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC10setupVideo12withSettings13configuration17formatDescriptionSbSDySSypGSg_AA0abE13ConfigurationCSo08CMFormatJ3RefaSgtF">setupVideo(withSettings:configuration:formatDescription:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Prepares a session for recording video.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setupVideo</span><span class="p">(</span><span class="n">withSettings</span> <span class="nv">settings</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">]?,</span> <span class="nv">configuration</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelVideoConfiguration.html">NextLevelVideoConfiguration</a></span><span class="p">,</span> <span class="nv">formatDescription</span><span class="p">:</span> <span class="kt">CMFormatDescription</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>settings</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>AVFoundation video settings dictionary</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>configuration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Video configuration for video output</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>formatDescription</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>sample buffer format description</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>True when setup completes successfully</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC10setupAudio12withSettings13configuration17formatDescriptionSbSDySSypGSg_AA0abE13ConfigurationCSo08CMFormatJ3RefatF"></a>
                    <a name="//apple_ref/swift/Method/setupAudio(withSettings:configuration:formatDescription:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC10setupAudio12withSettings13configuration17formatDescriptionSbSDySSypGSg_AA0abE13ConfigurationCSo08CMFormatJ3RefatF">setupAudio(withSettings:configuration:formatDescription:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Prepares a session for recording audio.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setupAudio</span><span class="p">(</span><span class="n">withSettings</span> <span class="nv">settings</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">]?,</span> <span class="nv">configuration</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelAudioConfiguration.html">NextLevelAudioConfiguration</a></span><span class="p">,</span> <span class="nv">formatDescription</span><span class="p">:</span> <span class="kt">CMFormatDescription</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>settings</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>AVFoundation audio settings dictionary</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>configuration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Audio configuration for audio output</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>formatDescription</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>sample buffer format description</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>True when setup completes successfully</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/recording"></a>
                <a name="//apple_ref/swift/Section/recording" class="dashAnchor"></a>
                <a href="#/recording">
                  <h3 class="section-name">recording</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC0abC35AppendSampleBufferCompletionHandlera"></a>
                    <a name="//apple_ref/swift/Alias/NextLevelSessionAppendSampleBufferCompletionHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC0abC35AppendSampleBufferCompletionHandlera">NextLevelSessionAppendSampleBufferCompletionHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Completion handler type for appending a sample buffer</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">NextLevelSessionAppendSampleBufferCompletionHandler</span> <span class="o">=</span> <span class="p">(</span><span class="kt">Bool</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC11appendVideo16withSampleBuffer011customImageH016minFrameDuration17completionHandlerySo08CMSampleH3Refa_So08CVBufferQ0aSgSo6CMTimeaySbXEtF"></a>
                    <a name="//apple_ref/swift/Method/appendVideo(withSampleBuffer:customImageBuffer:minFrameDuration:completionHandler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC11appendVideo16withSampleBuffer011customImageH016minFrameDuration17completionHandlerySo08CMSampleH3Refa_So08CVBufferQ0aSgSo6CMTimeaySbXEtF">appendVideo(withSampleBuffer:customImageBuffer:minFrameDuration:completionHandler:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Append video sample buffer frames to a session for recording.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">appendVideo</span><span class="p">(</span><span class="n">withSampleBuffer</span> <span class="nv">sampleBuffer</span><span class="p">:</span> <span class="kt">CMSampleBuffer</span><span class="p">,</span> <span class="nv">customImageBuffer</span><span class="p">:</span> <span class="kt">CVPixelBuffer</span><span class="p">?,</span> <span class="nv">minFrameDuration</span><span class="p">:</span> <span class="kt">CMTime</span><span class="p">,</span> <span class="nv">completionHandler</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelSession.html#/s:9NextLevel0aB7SessionC0abC35AppendSampleBufferCompletionHandlera">NextLevelSessionAppendSampleBufferCompletionHandler</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>sampleBuffer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Sample buffer input to be appended, unless an image buffer is also provided</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>imageBuffer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional image buffer input for writing a custom buffer</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>minFrameDuration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Current active minimum frame duration</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completionHandler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Handler when a frame appending operation completes or fails</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC11appendVideo15withPixelBuffer011customImageH09timestamp16minFrameDuration17completionHandlerySo11CVBufferRefa_AKSgSdSo6CMTimeaySbXEtF"></a>
                    <a name="//apple_ref/swift/Method/appendVideo(withPixelBuffer:customImageBuffer:timestamp:minFrameDuration:completionHandler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC11appendVideo15withPixelBuffer011customImageH09timestamp16minFrameDuration17completionHandlerySo11CVBufferRefa_AKSgSdSo6CMTimeaySbXEtF">appendVideo(withPixelBuffer:customImageBuffer:timestamp:minFrameDuration:completionHandler:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Append video pixel buffer frames to a session for recording.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">appendVideo</span><span class="p">(</span><span class="n">withPixelBuffer</span> <span class="nv">pixelBuffer</span><span class="p">:</span> <span class="kt">CVPixelBuffer</span><span class="p">,</span> <span class="nv">customImageBuffer</span><span class="p">:</span> <span class="kt">CVPixelBuffer</span><span class="p">?,</span> <span class="nv">timestamp</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="nv">minFrameDuration</span><span class="p">:</span> <span class="kt">CMTime</span><span class="p">,</span> <span class="nv">completionHandler</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelSession.html#/s:9NextLevel0aB7SessionC0abC35AppendSampleBufferCompletionHandlera">NextLevelSessionAppendSampleBufferCompletionHandler</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>sampleBuffer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Sample buffer input to be appended, unless an image buffer is also provided</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>customImageBuffer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional image buffer input for writing a custom buffer</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>minFrameDuration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Current active minimum frame duration</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completionHandler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Handler when a frame appending operation completes or fails</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC11appendAudio16withSampleBuffer17completionHandlerySo08CMSampleH3Refa_ySbctF"></a>
                    <a name="//apple_ref/swift/Method/appendAudio(withSampleBuffer:completionHandler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC11appendAudio16withSampleBuffer17completionHandlerySo08CMSampleH3Refa_ySbctF">appendAudio(withSampleBuffer:completionHandler:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Append audio sample buffer to a session for recording.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">appendAudio</span><span class="p">(</span><span class="n">withSampleBuffer</span> <span class="nv">sampleBuffer</span><span class="p">:</span> <span class="kt">CMSampleBuffer</span><span class="p">,</span> <span class="nv">completionHandler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Classes/NextLevelSession.html#/s:9NextLevel0aB7SessionC0abC35AppendSampleBufferCompletionHandlera">NextLevelSessionAppendSampleBufferCompletionHandler</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>sampleBuffer</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Sample buffer input to be appended</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completionHandler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Handler when a frame appending operation completes or fails</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC5resetyyF"></a>
                    <a name="//apple_ref/swift/Method/reset()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC5resetyyF">reset()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Resets a session to the initial state.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">reset</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC0abC24EndClipCompletionHandlera"></a>
                    <a name="//apple_ref/swift/Alias/NextLevelSessionEndClipCompletionHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC0abC24EndClipCompletionHandlera">NextLevelSessionEndClipCompletionHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Completion handler type for ending a clip</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">NextLevelSessionEndClipCompletionHandler</span> <span class="o">=</span> <span class="p">(</span><span class="kt"><a href="../Classes/NextLevelClip.html">NextLevelClip</a></span><span class="p">?,</span> <span class="kt">Error</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC9beginClipyyF"></a>
                    <a name="//apple_ref/swift/Method/beginClip()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC9beginClipyyF">beginClip()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Starts a clip</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">beginClip</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC7endClip17completionHandleryyAA0abE0CSg_s5Error_pSgtcSg_tF"></a>
                    <a name="//apple_ref/swift/Method/endClip(completionHandler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC7endClip17completionHandleryyAA0abE0CSg_s5Error_pSgtcSg_tF">endClip(completionHandler:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Finalizes the recording of a clip.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">endClip</span><span class="p">(</span><span class="nv">completionHandler</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelSession.html#/s:9NextLevel0aB7SessionC0abC24EndClipCompletionHandlera">NextLevelSessionEndClipCompletionHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>completionHandler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Handler for when a clip is finalized or finalization fails</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/clip%20editing"></a>
                <a name="//apple_ref/swift/Section/clip editing" class="dashAnchor"></a>
                <a href="#/clip%20editing">
                  <h3 class="section-name">clip editing</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC11lastClipUrl10Foundation3URLVSgvp"></a>
                    <a name="//apple_ref/swift/Property/lastClipUrl" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC11lastClipUrl10Foundation3URLVSgvp">lastClipUrl</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Helper function that provides the location of the last recorded clip.
This is helpful when merging multiple segments isn&rsquo;t desired.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">lastClipUrl</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>URL path to the last recorded clip.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC3add4clipyAA0aB4ClipC_tF"></a>
                    <a name="//apple_ref/swift/Method/add(clip:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC3add4clipyAA0aB4ClipC_tF">add(clip:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds a specific clip to a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">clip</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelClip.html">NextLevelClip</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>clip</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Clip to be added</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC3add4clip2atyAA0aB4ClipC_SitF"></a>
                    <a name="//apple_ref/swift/Method/add(clip:at:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC3add4clip2atyAA0aB4ClipC_SitF">add(clip:at:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds a specific clip to a session at the desired index.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">clip</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelClip.html">NextLevelClip</a></span><span class="p">,</span> <span class="n">at</span> <span class="nv">idx</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>clip</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Clip to be added</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>idx</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Index at which to add the clip</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC6remove4clipyAA0aB4ClipC_tF"></a>
                    <a name="//apple_ref/swift/Method/remove(clip:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC6remove4clipyAA0aB4ClipC_tF">remove(clip:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Removes a specific clip from a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remove</span><span class="p">(</span><span class="nv">clip</span><span class="p">:</span> <span class="kt"><a href="../Classes/NextLevelClip.html">NextLevelClip</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>clip</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Clip to be removed</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC6remove6clipAt0D4FileySi_SbtF"></a>
                    <a name="//apple_ref/swift/Method/remove(clipAt:removeFile:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC6remove6clipAt0D4FileySi_SbtF">remove(clipAt:removeFile:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Removes a clip from a session at the desired index.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remove</span><span class="p">(</span><span class="n">clipAt</span> <span class="nv">idx</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">removeFile</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>idx</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Index of the clip to remove</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>removeFile</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>True to remove the associated file with the clip</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC14removeAllClips0D5FilesySb_tF"></a>
                    <a name="//apple_ref/swift/Method/removeAllClips(removeFiles:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC14removeAllClips0D5FilesySb_tF">removeAllClips(removeFiles:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Removes and destroys all clips for a session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">removeAllClips</span><span class="p">(</span><span class="nv">removeFiles</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>removeFiles</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>When true, associated files are also removed.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC14removeLastClipyyF"></a>
                    <a name="//apple_ref/swift/Method/removeLastClip()" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC14removeLastClipyyF">removeLastClip()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Removes the last recorded clip for a session, <q>Undo</q>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">removeLastClip</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC0abC27MergeClipsCompletionHandlera"></a>
                    <a name="//apple_ref/swift/Alias/NextLevelSessionMergeClipsCompletionHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC0abC27MergeClipsCompletionHandlera">NextLevelSessionMergeClipsCompletionHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Completion handler type for merging clips, optionals indicate success or failure when nil</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">NextLevelSessionMergeClipsCompletionHandler</span> <span class="o">=</span> <span class="p">(</span><span class="kt">URL</span><span class="p">?,</span> <span class="kt">Error</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:9NextLevel0aB7SessionC10mergeClips11usingPreset17completionHandlerySS_y10Foundation3URLVSg_s5Error_pSgtctF"></a>
                    <a name="//apple_ref/swift/Method/mergeClips(usingPreset:completionHandler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:9NextLevel0aB7SessionC10mergeClips11usingPreset17completionHandlerySS_y10Foundation3URLVSg_s5Error_pSgtctF">mergeClips(usingPreset:completionHandler:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Merges all existing recorded clips in the session and exports to a file.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">mergeClips</span><span class="p">(</span><span class="n">usingPreset</span> <span class="nv">preset</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">completionHandler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Classes/NextLevelSession.html#/s:9NextLevel0aB7SessionC0abC27MergeClipsCompletionHandlera">NextLevelSessionMergeClipsCompletionHandler</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>preset</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>AVAssetExportSession preset name for export</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completionHandler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Handler for when the merging process completes</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2019 <a class="link" href="http://nextlevel.engineering" target="_blank" rel="external">Patrick Piemonte</a>. All rights reserved. (Last updated: 2019-05-21)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
